<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->redirect('/', 'admin/grades');
//    $router->get('/', 'MembersController@index');
    $router->resource('branches', 'BranchesController');
    $router->resource('members', 'MembersController');
    $router->resource('meets', 'MeetsController');
    $router->resource('scores', 'ScoresController');
    $router->resource('programs', 'ProgramsController');
    $router->resource('grades', 'GradesController');
    $router->resource('master/members', 'MembersController');
    $router->resource('master/programs', 'ProgramsController');
    $router->resource('master/grades', 'GradesController');
    $router->resource('member/grades', 'GradesController');
    $router->resource('member/grades', 'GradesController');
    $router->resource('managers/programs', 'ProgramsController');
    $router->resource('gumu/grades', 'GradesController');
    $router->resource('xiaoyao/grades', 'GradesController');
    $router->resource('wudang/grades', 'GradesController');
    $router->resource('tasks/no', 'TaskController');
    $router->resource('tasks/yes', 'TaskController');
//    /*武当路由*/
//    //任务列表
//    $router->resource('tasks/no', 'TaskController');
//    $router->resource('tasks/yes', 'TaskController');
//    //门派信息
//    $router->resource('master/members', 'MembersController');
//    $router->resource('master/programs', 'ProgramsController');
//    $router->resource('master/grades', 'GradesController');
//    //弟子操作
//    $router->resource('members', 'MembersController');
//    $router->resource('grades', 'GradesController');
//    //各派绩效
//    $router->resource('gumu/grades', 'GradesController');
//    $router->resource('xiaoyao/grades', 'GradesController');
//    $router->resource('wudang/grades', 'GradesController');
//    //项目经理
//    $router->resource('managers/programs', 'ProgramsController');
//    /*逍遥路由*/
//    //任务列表
//    $router->resource('tasks/no', 'TaskController');
//    $router->resource('tasks/yes', 'TaskController');
//    //门派信息
//    $router->resource('master/members', 'MembersController');
//    $router->resource('master/programs', 'ProgramsController');
//    $router->resource('master/grades', 'GradesController');
//    //弟子操作
//    $router->resource('members', 'MembersController');
//    $router->resource('grades', 'GradesController');
//    /*古墓路由*/
//    //任务列表
//    $router->resource('tasks/no', 'TaskController');
//    $router->resource('tasks/yes', 'TaskController');
//    //门派信息
//    $router->resource('master/members', 'MembersController');
//    $router->resource('master/programs', 'ProgramsController');
//    $router->resource('master/grades', 'GradesController');
//    //弟子操作
//    $router->resource('members', 'MembersController');
//    $router->resource('grades', 'GradesController');
//    /*明教路由*/
//    //任务列表
//    $router->resource('tasks/no', 'TaskController');
//    $router->resource('tasks/yes', 'TaskController');
//    //各派绩效
//    $router->resource('gumu/grades', 'GradesController');
//    $router->resource('xiaoyao/grades', 'GradesController');
//    $router->resource('wudang/grades', 'GradesController');
//    //成员绩效统计
//    $router->resource('member/grades', 'GradesController');
//    //项目列表
//    $router->resource('managers/programs', 'ProgramsController');
//    /*峨眉路由*/
//    //成员绩效统计
    $router->resource('emei/grades', 'GradesController');
//    //项目列表
//    $router->resource('managers/programs', 'ProgramsController');
//    //成员管理
//    $router->resource('members', 'MembersController');
//    //分享会相关信息
//    $router->resource('meets', 'MeetsController');
//    $router->resource('scores', 'ScoresController');
});
